package com.zzg.springboot.entity;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

public class ParameObject implements Serializable {
	@NotBlank
	private String name;
	@Min(value=1)
	@Max(value=120)
	private int age;
	@NotNull(message="用户ID不能为空")
	private Long id;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	public ParameObject(){
		super();
	}
	
	public ParameObject(String name, int age, Long id) {
		super();
		this.name = name;
		this.age = age;
		this.id = id;
	}
	
	
	

}
